package com.xxh.test;

import com.xxh.config.MyConfig;
import com.xxh.entity.User;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

import java.lang.reflect.Proxy;

public class testJConfig {
    public static void main(String[] args) {

        ApplicationContext context= new AnnotationConfigApplicationContext(MyConfig.class);
        User user = context.getBean(User.class);
        System.out.println(user);
    }
}
